﻿//************************************************************ 
// Copyright © 2009 - 2010 Oleg Stuhin & Rostislav Haitovich
// To learn more about Mytrip.Mvc.Entyty visit 
// http://starterkitmytripmvc.codeplex.com/
// mytripmvc@gmail.com
// license: Microsoft Public License (Ms-PL) 
// ***********************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
    /// <summary>
    /// BodyElements
    /// </summary>
   public static class BodyElements
    {
       /// <summary>
        /// (blue)background: #4b6c9e;
        /// (blue)font-family: Verdana, Helvetica, Sans-Serif;
        /// (green)background: #fff url(green/background_body.png) repeat-x;
        /// (green)font-family: Georgia, 'Times New Roman', Times, serif;
        /// font-size: .75em;
        /// margin: 0;
        /// padding: 0;
        /// color: #696969;
       /// </summary>
        /// <returns>static string</returns>
       public static string body()
       {  
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "blue")
           {
               result.AppendLine("background: #4b6c9e;");
               result.AppendLine("font-family: Verdana, Helvetica, Sans-Serif;");
           } if (ThemeSetting.theme() == "green")
           {
               result.AppendLine("background: #fff url(green/background_body.png) repeat-x;");
               result.AppendLine("font-family: Georgia, 'Times New Roman', Times, serif;");
           }
           if (ThemeSetting.theme() == "gray")
           {
               result.AppendLine("background: #6E6E6E url(gray/background_body.png) repeat-x;");
               result.AppendLine("font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;");
           }
           result.AppendLine("font-size: .75em;");           
           result.AppendLine("margin: 0;");
           result.AppendLine("padding: 0;");
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color: #333;");
           else
           result.AppendLine("color: #696969;");
           return result.ToString();
       }
       /// <summary>
       /// color: #034af3;
       /// text-decoration: underline;
       /// </summary>
       /// <returns>static string</returns>
       public static string a_link()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
             result.AppendLine("color: #333;");
           else
             result.AppendLine("color: #034af3;");
           result.AppendLine("text-decoration: underline;"); 
           return result.ToString();
       }
       /// <summary>
       /// color: #505abc;
       /// </summary>
       /// <returns>static string</returns>
       public static string a_visited()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color: #333;");
           else
           result.AppendLine("color: #505abc;");
           return result.ToString();
       }
       /// <summary>
       /// color: #1d60ff;
       /// text-decoration: none;
       /// </summary>
       /// <returns>static string</returns>
       public static string a_hover()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color: #333;");
           else
           result.AppendLine("color: #1d60ff;");
           result.AppendLine("text-decoration: none;");
           return result.ToString();
       }
       /// <summary>
       /// color: #12eb87;
       /// </summary>
       /// <returns>static string</returns>
       public static string a_active()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color: #333;");
           else
           result.AppendLine("color: #12eb87;");
           return result.ToString();
       }
       /// <summary>
       /// margin-bottom: 20px;
       /// line-height: 1.6em;
       /// </summary>
       /// <returns>static string</returns>
       public static string p_ul()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("margin-bottom: 20px;");
           result.AppendLine("line-height: 1.6em;");
           return result.ToString();
       }
    }
}
